encoding/json.Decoder.buf (field)
24 uses
encoding/json (current package)
stream.go#L16: buf []byte
stream.go#L67: dec.d.init(dec.buf[dec.scanp : dec.scanp+n])
stream.go#L84: return bytes.NewReader(dec.buf[dec.scanp:])
stream.go#L100: for ; scanp < len(dec.buf); scanp++ {
stream.go#L101: c := dec.buf[scanp]
stream.go#L131: if nonSpace(dec.buf) {
stream.go#L151: n := copy(dec.buf, dec.buf[dec.scanp:])
stream.go#L152: dec.buf = dec.buf[:n]
stream.go#L158: if cap(dec.buf)-len(dec.buf) < minRead {
stream.go#L159: newBuf := make([]byte, len(dec.buf), 2*cap(dec.buf)+minRead)
stream.go#L160: copy(newBuf, dec.buf)
stream.go#L161: dec.buf = newBuf
stream.go#L165: n, err := dec.r.Read(dec.buf[len(dec.buf):cap(dec.buf)])
stream.go#L166: dec.buf = dec.buf[0 : len(dec.buf)+n]
stream.go#L490: for i := dec.scanp; i < len(dec.buf); i++ {
stream.go#L491: c := dec.buf[i]
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |